package com.sykj.qiaoli.controller;

import com.sykj.qiaoli.bean.client.AddclientBean;
import com.sykj.qiaoli.bean.client.Client;
import com.sykj.qiaoli.service.ClientService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * @program: low-office
 * @description:用户的客户（委托人）
 * @author: qiaoli
 * @create: 2020-05-20 18:17
 */
@RestController
@RequestMapping("/client")
public class ClientController {
    @Autowired
    ClientService clientService;
    @RequestMapping("/findClient/{id}")
    public List<AddclientBean> FindClient(@PathVariable("id") Integer id){
        return  clientService.FindClient(id);
    }
    @RequestMapping("/selectAll")
    public List<Client> FindAll(Map<String, Object> map){
     return clientService.FindAll(map);
    }
}
